<template>
  <div class="warp">
    <el-row>
      <el-col :span="13">
        <el-card shadow="never" class="doc-list">
          <standard-file-list
            class="list"
            load-root-url="/file/directory/drill-record-doc"
            label-name="文档"
            @preview-change="previewChange"
          ></standard-file-list>
        </el-card>
      </el-col>
      <el-col :span="11">
        <el-card>
          <video-list
            class="list video-list"
            v-show="!previewMode"
            :rows="2"
            :cols="2"
            load-root-url="/file/directory/drill-record-video"
          ></video-list>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import StandardFileList from "~/components/file-list/StandardFileList";
import VideoList from "~/components/file-list/video-list/VideoList";
export default {
  name: "DrillRecord",
  components: { VideoList, StandardFileList },
  data() {
    return {
      previewMode: false,
    };
  },
  methods: {
    previewChange(v) {
      this.previewMode = v;
    },
  },
};
</script>

<style scoped>
.warp {
  height: 100%;
}
.list {
  height: 78.4vh;
}
.doc-list {
  margin-right: 5px;
}
</style>
